package com.xiaotu.service.pgsql;

import com.xiaotu.dao.pgsql.PgsqlXtIndexDataSourceMapper;
import com.xiaotu.entity.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zhangxiao
 * @create 2021-10-27 11:30
 */
@Service
public class PgsqlXtIndexDataSourceService {

    @Autowired
    private PgsqlXtIndexDataSourceMapper pgsqlXtIndexDataSourceMapper;

    public List<XtIndexSyncTvModel> getXtIndexSyncTv(String tableName) {
        return pgsqlXtIndexDataSourceMapper.getXtIndexSyncTv(tableName);
    }

    public List<XtIndexSyncMovieModel> getXtIndexSyncMovie(String tableName) {
        return pgsqlXtIndexDataSourceMapper.getXtIndexSyncMovie(tableName);
    }

    public List<XtIndexSyncNetModel> getXtIndexSyncNetTV(String tableName) {
        return pgsqlXtIndexDataSourceMapper.getXtIndexSyncNetTV(tableName);
    }

    public List<XtIndexSyncNetModel> getXtIndexSyncNetMovie(String tableName) {
        return pgsqlXtIndexDataSourceMapper.getXtIndexSyncNetMovie(tableName);
    }

    public List<XtIndexSyncDouBanModel> getXtIndexSyncDouBan(String tableName) {
        return pgsqlXtIndexDataSourceMapper.getXtIndexSyncDouBan(tableName);
    }

    public List<XtIndexSyncSwMovieWorksModel> getXtIndexSyncSwMovieWorks(String tableName) {
        return pgsqlXtIndexDataSourceMapper.getXtIndexSyncSwMovieWorks(tableName);
    }

    public List<XtIndexSyncSwNetMovieWorksModel> getXtIndexSyncSwNetMovieWorks(String tableName) {
        return pgsqlXtIndexDataSourceMapper.getXtIndexSyncSwNetMovieWorks(tableName);
    }

}
